package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计量单位组业务对象 base_unit_group
 *
 * @author chenyun
 * @date 2022-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("计量单位组业务对象")
public class UnitGroupBo extends BaseEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @LikeRight
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 基础单位
     */
    @EQ
    @ApiModelProperty(value = "基础单位", required = true)
    @NotBlank(message = "基础单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String basicUnit;

    /**
     * 副单位
     */
    @EQ
    @ApiModelProperty(value = "副单位", required = true)
    @NotBlank(message = "副单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String otherUnit;

    /**
     * 机构
     */
    @EQ
    @ApiModelProperty(value = "机构", required = true)
    @NotNull(message = "机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 副单位2
     */
    @EQ
    @ApiModelProperty(value = "副单位2", required = true)
    @NotBlank(message = "副单位2不能为空", groups = { AddGroup.class, EditGroup.class })
    private String otherUnitTwo;

    /**
     * 状态
     */
    @EQ
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 副单位3
     */
    @EQ
    @ApiModelProperty(value = "副单位3", required = true)
    @NotBlank(message = "副单位3不能为空", groups = { AddGroup.class, EditGroup.class })
    private String otherUnitThree;

    /**
     * 备注
     */
    @EQ
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 比例
     */
    @EQ
    @ApiModelProperty(value = "比例", required = true)
    @NotNull(message = "比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ratio;

    /**
     * 比例2
     */
    @EQ
    @ApiModelProperty(value = "比例2", required = true)
    @NotNull(message = "比例2不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ratioTwo;

    /**
     * 比例3
     */
    @EQ
    @ApiModelProperty(value = "比例3", required = true)
    @NotNull(message = "比例3不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ratioThree;


}
